<?php

class m131011_065624_create_product_plus_table extends CDbMigration
{
	public function up()
	{
            $this->execute("
                CREATE TABLE IF NOT EXISTS `product_plus` (
                        `id` int(11) NOT NULL AUTO_INCREMENT,
                        `masterId` int(11) NOT NULL,
                        `plusId` int(11) NOT NULL,
                        `plusType` tinyint(4) NOT NULL,
                        PRIMARY KEY (`id`)
                ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
            ");
	}

	public function down()
	{
		echo "m131011_065624_create_product_plus_table does not support migration down.\n";
		return false;
	}

	/*
	// Use safeUp/safeDown to do migration with transaction
	public function safeUp()
	{
	}

	public function safeDown()
	{
	}
	*/
}